﻿using Microsoft.Extensions.Configuration;

namespace Common.YamlConfiguration;

public class AppConfigSource : IConfigurationSource
{
    public AppConfigSource(string path)
    {
        Path = path;
    }

    public string Path { get; set; }
    
    public IConfigurationProvider Build(IConfigurationBuilder builder)
    {
        return new AppConfigProvider(this);
    }
}